# """
# 1
# """
# a=14
# b=12345678.1234566
# s='i love py'
# print('a = %05d' % a)
# print('b = %8.3f'% b)
# print('%17s'% s)
# print('%-17.6s'% s)
# """
# 111
# """
# import time
# scale =10
# print('-------开始-------')
# for i in  range(scale + 1):
#     done = '**' * i
# undone = '..' * (scale - i)
# percent = i / scale
# print('{:>4.0%}[{}->{}]'.format(percent,done,undone))
# time.sleep(0.1)
# print('-----结束-----')
# """
# 22333
# """
# # strs = 'This is an example of cutting'
# # strs.split()
# strs = 'Rain  falls    on  field  and    tree.'
# print(strs)
# spl=strs.split()
# print(spl)
# join=''.join(spl)
# print(join)
# """
# 333
# """
#
# name="flandre"
# age=499
# sex='girl'
# temp = "我叫{2},我今年{0}岁，我的性别是{1}"
# temp_01="我叫{}，我今年{}岁，我的性别是{}"
# print(temp.format(name,age,sex))
# print(temp_01.format(name,age,sex))
"""
3434
"""

str3 = "你是我，我是你，我不是你，你不是我"
str4 = "我是谁"
print(str3.find(str4))
print(str3.find("111"))
num = str3.find(str4)
if num == -1:
    print("字符不存在")
else:
    print(str3,"'{}'在{}位置".format(str4,num))
"""
22333322
"""
str_5 = "wssnsswsnnsw___ADADAADSSS"
print(str_5.upper())
print(str_5.lower())
"""
4444444
"""
print(str_5.isalnum())
str_6 ="ffffaaassdd12333ADADADFFSS"
print(str_6.isalnum())
"""
hahaha
"""
str_1 ="cra arc car asd"
str_2 = str_1.replace("abc","233",1)
print(str_2)
"""
where are they
"""
str_3 = "hello rip"
print(str_3.split())
str_7 ="apple,banana,cherry"
fru = str_7.split(",")
fru233 = str_7.split("-")
print(fru)
print(fru233)
